/*
 * 
 */
package com.roc.page;

/**
 * 
 * @author Administrator
 *
 */
public interface IWhereCondition {
	/**
	 * Add condition in the equal condition "=" .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param NullSensitive
	 */
	public void addConditionEqual(String fieldsName, Object fieldsValue, boolean NullSensitive);

	/**
	 * Add condition in the equal condition "=" .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param NullSensitive
	 */
	public void addConditionNotEqual(String fieldsName, Object fieldsValue, boolean NullSensitive);
	
	/**
	 * Add condition in the equal condition operation .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param operation
	 * @param NullSensitive
	 */
	public void addCondition(String fieldsName, Object fieldsValue,String operation, boolean NullSensitive);	

	/**
	 * Add condition in the equal condition "like" .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param NullSensitive
	 */
	public void addConditionLikeFirst(String fieldsName, Object fieldsValue, boolean NullSensitive);

	/**
	 * Add condition in the equal condition "like" .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param NullSensitive
	 */
	public void addConditionLikeEnd(String fieldsName, Object fieldsValue, boolean NullSensitive);

	/**
	 * Add condition in the equal condition "like" .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param NullSensitive
	 */
	public void addConditionLikeAll(String fieldsName, Object fieldsValue, boolean NullSensitive);

	/**
	 * Add a HQL String condition   
	 * @param HQLStr
	 */
	public void addConditionSQLStr(String SQLStr);

	/**
	 * Add condition in the equal condition operation .If NullSensitive is true , in the condition of filedsValue equals ""
	 * the HQL sentence will use is null sentence ,otherwise use just ignore it  
	 * @param fieldsName
	 * @param fieldsValue
	 * @param operation
	 * @param NullSensitive
	 */
	public void addConditionIn(String fieldsName, Object[] fieldsValue, String operation, boolean NullSensitive);

}
